<template>
    <div>
        <h3>-Child-</h3>
        <slot name="user"></slot>
        <slot name="user2"></slot>

        <ul>
            <li v-for="todo in todos" :key="todo.id">
                <slot :todo="todo" :$id="todo.id"></slot>
            </li>
        </ul>
    </div>
</template>

<script>
import Son from "@/components/Son.vue";

export default {
    name: "Child",
    components: {
        Son
    },
    props:['todos']
}
</script>